//************************************************ 
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_payment_receipt.js中编写
//************************************************ 
export default function() {
	return {
		editFormFields: {},
		editFormOptions: [],
		searchFormFields: {"Voucher_sub":"","Sales_contract_voucher_sub":"","Payment_date":"","Payment_type":"","Remark":""},
		searchFormOptions: [{"title":"备注","field":"Remark"},{"type":"group"},{"title":"单据编码","field":"Voucher_sub","type":"like"},{"title":"销售合同编码","field":"Sales_contract_voucher_sub","type":"like"},{"title":"回款日期","field":"Payment_date","type":"date"},{"key":"结账类型","data":[],"title":"回款形式","field":"Payment_type","type":"select"}],
		columns: [{field:'Voucher_sub',title:'单据编码',type:'string',link:true},
                       {field:'Sales_contract_voucher_sub',title:'销售合同编码',type:'string'},
                       {field:'Contract_total_price',title:'合同金额',type:'decimal'},
                       {field:'Payment_total_price',title:'本次回款金额',type:'decimal'},
                       {field:'Payment_total_price_have',title:'已回款金额',type:'decimal'},
                       {field:'Payment_date',title:'回款日期',type:'datetime'},
                       {field:'Payment_type',title:'回款形式',type:'int',bind:{ key:'结账类型',data:[]}},
                       {field:'Attachment',title:'附件',type:'file'},
                       {field:'Image',title:'图片',type:'img'}],
		table: {
			key: 'Payment_receipt',
			footer: "Foots",
			cnName: '回款单',
			name: 'q_payment_receipt',
			url: "/q_payment_receipt/",
			sortName: "Voucher_sub"
		}
	}
}
